import es
'''
Main exceptions class for GunGame
'''

class _ggException(Exception):
    def __init__(self, message):
        self.message = message
        self.name = self.__class__.__name__
        self._log()
        self._display()

    def __str__(self):
        '''
        Simple str return of the error
        '''
        return self.message 
        
    def _log(self):
        '''
        Empty prototype for logging the Error
         - We do it this way so thatr the exception classcan still be applied to the logging class! woo :P
        '''
        pass
        
    def _display(self):
        '''
        Empty prototype for displaying the Error (eg: es.dbgmsg(0, self.message))
        '''
        pass
    